<?php
/**
 * This file is part of Swoft.
 *
 * @link https://swoft.org
 * @document https://doc.swoft.org
 * @contact group@swoft.org
 * @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
 */

namespace App\Fallback;
use App\Rpc\Lib\OrderInterface;
use Six\Rpc\Client\Annotation\Mapping\Fallback;


/**
 * Fallback demo
 *
 * @Fallback(name="OrderFallback",version="1.0")
 */

class OrderServiceFallback implements OrderInterface
{

    /**
     * 更新订单状态
     * @param $data
     * @return array
     */
    public function update($data): array
    {
        return ['status'=>1,'result' =>'订单状态更新降级啦'];
    }


    /**
     * 查询某个任务的状态
     * @param $msg_id
     * @return array
     */
    public function confirmStatus($msg_id):array {

        return ['status'=>1,'result' =>'订单状态确认降级啦'];
    }
}